* {
    margin: 0;
    padding: 0;
}

#root {
    display: flex;
    flex-direction: column;
}

.ant-layout-header {
    padding: 0;
    display: flex;

    .left {
        flex: 8;
        position: relative;
        display: flex;
        color: white;
        justify-content: flex-end;


        .appName {
            display: inline-block;
            height: 100%;
            width: 210px;
            background-color: rgb(244, 246, 245);
            font-size: 34px;
            text-align: center;
            position: absolute;
            left: 0;
            top: 0;
            margin: 0;
            color: rgb(0, 124, 225);
        }

        .courseName {
            margin-right: 30px;
        }

        .courseTime {
            background-color: rgb(66, 66, 66);
            // height: 30px;
            border-radius: 30%;
        }
    }
}

.right {
    flex: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



main {
    flex: 1;
    display: flex;

    .preview {
        height: 100%;
        width: 210px;
        display: flex;
        flex-direction: column;

        .previewPicture {
            flex: 1;
            overflow: hidden;
        }

        .previewBook {
            list-style: none;
            text-align: center;
            background-color: beige;

            li {
                border-top: 1px solid rgb(63, 63, 63);
                height: 30px;
                line-height: 30px;
                cursor: pointer
            }

            div {
                height: 40px;
                line-height: 40px;
                border-top: 1px solid rgb(63, 63, 63);
                cursor: pointer;

                .ant-upload {
                    background-color: beige;
                }
            }
        }
    }

    .mainpart {
        height: 100%;
        flex: 13;
        vertical-align: middle;
        text-align: center;
        color: rgba(0, 0, 0, 0.096);
        font-size: 50px;
        border-left: 1px solid rgba(0, 0, 0, 0.096);
        box-sizing: border-box;
    }

    .functions {
        height: 100%;
        flex: 1;
        background-color: rgb(0, 21, 41);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .top{
            div{
                color: white;
                margin: 10px 0;
                border: 1px solid white;
                cursor: pointer;
                text-align: center;
            }
            p{
                margin: 0;
            }
            .anticon{
                font-size: 24px;
            }
        }
        .bottom{
            color: white;
            font-size: 16px;
            text-align: center;
            p{
                border-bottom: 2px solid white;
                cursor: pointer;
                margin:20px 0;
            }
        }
    }

    .chat {
        height: 100%;
        flex: 5;
        display: flex;
        flex-direction: column;

        .headPortrait{
            width: 100%;
            height: 240px;
            background-color: rgb(255, 255, 193);

            div{
                width : 100%;
                height: 80%;
                img{
                    height: 100%;
                }
            }
        }

        .chatContent{
            flex: 1;
            display: flex;
            flex-direction: column;

            .top{
                flex: 1;
                
                .ltk-right {
                    width: 120px;
                    border: 1px solid black;
                    font-size: 16px;
                    margin-top: 20px;
                    border-radius: 20px;
                    text-align: center;
                    margin-left: 220px;
                    background-color: rgb(252, 232, 205);
                    box-shadow: 2px 1px;
                }
            }
            
        }


        
    }

}